set port=8892
netstat /ano | findstr %port%
if %errorlevel%==0 ( 
	for /f "tokens=5" %%a in ('netstat /ano ^| findstr %port%') do ( 
		taskkill /F /pid %%a
	)
	echo "项目终结成功，可重新部署"
) else (
	echo "该项目没有在运行,可直接部署"
)
exit
